package com.hyper_yang.javase.multiThread;

public class NoNameTest {
    public static void main(String[] args) {
//        Thread thread = new Thread(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println("线程正在执行");
//            }
//        });
//        thread.start();
        Thread thread = new Thread(() -> System.out.println("线程正在执行"));

        System.out.println("main正在执行");
    }
}
